const q = require('./query');
module.exports.loginLog = function (id) {
    q('INSERT INTO login_log (user_id,type) VALUES (?,?)', [id, 'login']);
}

module.exports.videoLog = function (uid, vid) {
    q('INSERT INTO video_log (user_id,video_id,type) VALUES (?,?,?)', [uid, vid, 'play']);
}